import axios from '@/utils/axios'
import moment from "moment";

export function getWageTask(params) {
  return axios({
    url: '/TaskView/getWageTask',
    method: 'post',
    data: params
  })
}

export function getWageEmpState(params) {
  return axios({
    url: '/WageEmp/getState',
    method: 'post',
    data: params
  })
}

export function updateWageEmpFlow(params) {
  return axios({
    url: '/WageEmp/updateFlow',
    method: 'post',
    data: params
  })
}

export function updateWageEmpFlowAll(params) {
  return axios({
    url: '/WageEmp/updateFlowAll',
    method: 'post',
    data: params
  })
}

export function getFourthTask(params) {
  return axios({
    url: '/TaskView/getFourthTask',
    method: 'post',
    data: params
  })
}

export function getFourthTaskState(params) {
  return axios({
    url: '/TaskView/getFourthTaskState',
    method: 'post',
    data: params
  })
}

export function getFourthEnterTask(params) {
  return axios({
    url: '/TaskView/getFourthEnterTask',
    method: 'post',
    data: params
  })
}

export function getFourthTaskEnterState(params) {
  return axios({
    url: '/TaskView/getFourthTaskEnterState',
    method: 'post',
    data: params
  })
}

export function getThirdTask(params) {
  return axios({
    url: '/TaskView/getThirdTask',
    method: 'post',
    data: params
  })
}

export function stopFlow(params) {
  return axios({
    url: '/flow/stopFlow',
    method: 'post',
    data: params
  })
}

export function restoreFlow(params) {
  return axios({
    url: '/flow/restoreFlow',
    method: 'post',
    data: params
  })
}

export function deleteFlow(params) {
  return axios({
    url: '/flow/deleteFlow',
    method: 'post',
    data: params
  })
}

export function addResultThirdExamine(params) {
  return axios({
    url: '/ResultThirdExamine/add',
    method: 'post',
    data: params
  })
}

export function getSecondTask(params) {
  return axios({
    url: '/TaskView/getSecondTask',
    method: 'post',
    data: params
  })
}

export function getBackWagePiece(params) {
  return axios({
    url: '/TaskView/getBackWagePiece',
    method: 'post',
    data: params
  })
}

export function getBackWageKpi(params) {
  return axios({
    url: '/TaskView/getBackWageKpi',
    method: 'post',
    data: params
  })
}

export function getWageFileTask(params) {
  return axios({
    url: '/TaskView/getWageFileTask',
    method: 'post',
    data: params
  })
}

export function getBackFourthPiece(params) {
  return axios({
    url: '/TaskView/getBackFourthPiece',
    method: 'post',
    data: params
  })
}

export function getBackFourthKpi(params) {
  return axios({
    url: '/TaskView/getBackFourthKpi',
    method: 'post',
    data: params
  })
}

export function getBackFourthScore(params) {
  return axios({
    url: '/TaskView/getBackFourthScore',
    method: 'post',
    data: params
  })
}

export function getBackFourthOkr(params) {
  return axios({
    url: '/TaskView/getBackFourthOkr',
    method: 'post',
    data: params
  })
}

export function getBackThirdPiece(params) {
  return axios({
    url: '/TaskView/getBackThirdPiece',
    method: 'post',
    data: params
  })
}

export function getBackThirdKpi(params) {
  return axios({
    url: '/TaskView/getBackThirdKpi',
    method: 'post',
    data: params
  })
}

export function getBackThirdScore(params) {
  return axios({
    url: '/TaskView/getBackThirdScore',
    method: 'post',
    data: params
  })
}

export function getBackThirdOkr(params) {
  return axios({
    url: '/TaskView/getBackThirdOkr',
    method: 'post',
    data: params
  })
}

export function getFourthTaskCount(params) {
  return axios({
    url: '/TaskView/fourthTaskCount',
    method: 'post',
    data: params
  })
}
  
  export function getEmpWageTaskCount(params) {
    return axios({
      url: '/TaskView/EmpWageTaskCount',
      method: 'post',
      data: params
    })
  }

  export function getThirdTaskCount(params) {
    return axios({
      url: '/TaskView/thirdTaskCount',
      method: 'post',
      data: params
    })
  }

  export function getSecondTaskCount(params) {
    return axios({
      url: '/TaskView/secondTaskCount',
      method: 'post',
      data: params
    })
  }

export function getWageFileTaskSearch(params) {
  return axios({
    url: '/TaskView/getWageFileTaskSearch',
    method: 'get',
    data: params
  })
}

